-- card: 6802 from stack: in.5 -- bmap block id: 13760 -- flags: 0000 -- background id: 3858 -- name: PrintContainer ----- HyperTalk script ----- on HideObjects hide cd fld "test" hide cd btn "try it!" end HideObjects on ShowObjects show cd fld "test" show cd btn "try it!" end ShowObjects -- part 1 (button) -- low flags: 00 -- high flags: A002 -- rect: left=80 top=302 right=336 bottom=173 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 8192 -- line height: 16 -- part name: Try It! ----- HyperTalk script ----- on mouseUp global errGlobal ask "What font should I use?" with "New York" put it into printFont printcontainer cd fld "test","a sample document","pagesetup", "printJob", printFont,12, "Plain" end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 0007 -- rect: left=18 top=116 right=296 bottom=250 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Test -- part contents for background part 38 ----- text ----- 37/50 -- part contents for background part 20 ----- text ----- PrintContainer - An XCMD to print a HyperCard container on the currently chosen printer. Calling syntax: PrintContainer textToPrint «, documentName» «“pagesetup|NOpagesetup”» «, “printjob|NOprintjob”» «, font» «, fSize» «, styleStr» «,“noDialog:errorGlobal”» TEXTTOPRINT: the container. DOCUMENTNAME: the name for the status dialog. NOPAGESETUP: suppresses the pagesetup dialog that normally appears. NOprintjob: suppresses the print job dialog that normally appears. FONT: the font (name) to use in printing. If the specified font is not available, GENEVA is used. FSIZE: the font size to use when printing. STYLESTR: a list of styles to use, enclosed in quotes. During the printing, you are allowed to press Command-Period in order to cancel. -- part contents for card part 2 ----- text ----- This is a great stack! I really like it! I really like this XCMD! All of the XCMD's work! There are no bugs to be found here! What a bunch of garbage!